
{extend name="index/base" /}

{block name="nav"}
<li><a href="/">首页</a></li>
<li><a href="/index.php/index/index/add"  class="active">发布留言</a></li>
{/block}


{block name="title"}发布留言{/block}

{block name="main"}
    <form class="form-horizontal" action="/index.php/index/index/addarticle" method="post">
        <div class="form-group">
            <label class="col-sm-2 control-label">标题</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" name="title" placeholder="请输入标题">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">内容</label>
            <div class="col-sm-10">
                <textarea rows="10" class="form-control" name="content" placeholder="请输入内容"> </textarea>
            </div>
        </div>

        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-primary">发布留言</button>
            </div>
        </div>
    </form>

{/block}